package com.example.demo.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

// 3.1 返回静态页面.
@Controller
@RequestMapping("/resp")
public class RespController {

    @RequestMapping("/index")
    public String sayHi() {
        return "/index.html";
    }
    // url: http://localhost:8080/resp/index
}
